package course.service;

import course.pojo.entity.Student;
import course.pojo.vo.Page;

import java.util.List;

/**
 * @author HLF
 * @date 2022/6/30 20:38
 */
public interface StudentService {
    Student getById(Integer sid);

    /**
     * @return 返回自增主键
     */
    int addStudent(Student student);

    int updateById(Student student);

    int updateInfo(Student student);
    int deleteById(Integer sid);

    List<Student> getList();

    /**/

    int deleteSelect(List<Integer> ids);

    long count();

    Page<Student> page(Integer pageNo);

    Page<Student> query(String tname, Integer pageNo);

    List<Student> selectBathByIds(List<Integer> ids);
}
